<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 将⼀个 Set 类型转换成 Array 类型
        var set = new Set([1,3,542,5,52,3]);
        console.log('为转换前'+set);
        console.log('转换后'+Array.from(set))
    </script>
</body>
</html>